/**
 * 
 */
package travibot.utility;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author Petr Macek
 * 
 */
public class ValueExtractor {

    public static String getNumericValueOnly(String text) {

        String ret = null;
        Pattern pattern = Pattern.compile("[0-9]+");
        Matcher matcher = pattern.matcher(text);
        if (matcher.find()) {
            ret = matcher.group();
        }
        return ret;
    }
}
